package com.smart.common.idem.service.impl;

import cn.hutool.core.util.RandomUtil;
import com.smart.common.idem.service.TokenService;
import org.springframework.stereotype.Service;

@Service
public class TokenServiceImpl implements TokenService {
    /**
     * 生成token的规则
     *
     * @return
     */
    @Override
    public String createToken() {
        return RandomUtil.randomString(8);
    }
}
